- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
Emit error when using path-segment keyword as cfg pred #146978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Emit error when using path-segment keyword as cfg pred #146978
Conversation
| Some changes occurred in compiler/rustc_attr_parsing | 
| Could you 
 After that we should be able to run crater on this. | 
| Reminder, once the PR becomes ready for a review, use  | 
505d13f    to
    b2be57d      
    Compare
  
    
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
| 
 
 | 
| @rustbot ready | 
| 
 
 | 
| 
 @petrochenkov I found  rust/compiler/rustc_session/src/parse.rs Lines 318 to 329 in a2db928 
 and the comment of  rust/compiler/rustc_errors/src/emitter.rs Lines 537 to 562 in 8155734 
 | 
| I have debug the logic in  | 
| Ah, ok, "fatal emitter" means "fatal-only emitter". In any case, the behavior is not correct. | 
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
956aa91    to
    97cd2c7      
    Compare
  
    
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
97cd2c7    to
    a7d6090      
    Compare
  
    
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
a7d6090    to
    c8bc460      
    Compare
  
    
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
cc53ca4    to
    9c2ed4c      
    Compare
  
    | Nice, there are only spurious regressions. | 
| @petrochenkov Cool! Thanks! | 
| Change introducionThis PR makes syntax accepted by  
 | 
| Sounds right, thanks @petrochenkov. @rfcbot fcp merge | 
| Team member @traviscross has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! cc @rust-lang/lang-advisors: FCP proposed for lang, please feel free to register concerns. | 
| @rfcbot reviewed | 
| @rfcbot reviewed | 
| 🔔 This is now entering its final comment period, as per the review above. 🔔 | 
Fixes #146968
Emit error
CfgPredicateIdentifierif the word is path-segment keyword.Detailed change description - #146978 (comment).
r? petrochenkov